Send feedback on this topic.
Teradata.Client.Provider
GetSchema(String,String[]) Method



Teradata.Client.Provider Namespace > TdConnection Class > GetSchema Method : GetSchema(String,String[]) Method
The name of the Schema Collection to return.
A set of restriction values for the requested schema collection.
Returns the requested schema collection information. The resulting Data.DataTable is filtered to the specified restrictions.
Syntax
'Declaration
 
Public Overloads Overrides NotOverridable Function GetSchema( _
   ByVal collectionName As String, _
   ByVal restrictionValues() As String _
) As DataTable
'Usage
 
Dim instance As TdConnection
Dim collectionName As String
Dim restrictionValues() As String
Dim value As DataTable
 
value = instance.GetSchema(collectionName, restrictionValues)
public override DataTable GetSchema( 
   string collectionName,
   string[] restrictionValues
)
public:
DataTable^ GetSchema( 
   String^ collectionName,
   array<String^>^ restrictionValues
) override 

Parameters

collectionName
The name of the Schema Collection to return.
restrictionValues
A set of restriction values for the requested schema collection.

Return Value

A DataTable that contains schema collection information.
Exceptions
ExceptionDescription
The Advanced SQL Engine returned an error or the .NET Data Provider for Teradata detected an error.
Remarks

This method will return MetaDataCollections schema collection when collectionName is null or Empty.

Common and Provider-Specific collections are documented in Schema Collections section of the Developers Guide. restrictionValues must correspond to the list of Restrictions documented in the Developers Guide.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdConnection Class
TdConnection Members
Overload List
DbConnection.GetSchema